package com.jeesite.modules.isys.keys.mapper;

import com.jeesite.modules.isys.keys.entity.Reservation;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XYMTOP
 * @since 2023-11-12
 */
@Repository
public interface ReservationMapper extends BaseMapper<Reservation> {
    /**
     * 创建预约申请
     * @param reservation 预约实体对象
     */
    void createReservation(Reservation reservation);

    /**
     * 更新预约申请
     * @param reservation 预约实体对象
     */
    void updateReservation(Reservation reservation);

    /**
     * 根据预约ID获取预约信息
     * @param reservId 预约ID
     * @return 预约实体对象
     */
    Reservation getReservationById(String reservId);
}

